<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <div>展开数组</div>
    <script>
      const arr = ["f1", "f2", "f3"];
      const arr1 = ["f2", "f3", "f4", "f5", "f6"];
      console.log(...arr); //f1 f2 f3
      console.log(...arr, ...arr1); //f1 f2 f3 f2 f3 f4 f5 f6
    </script>
  </body>
</html>
